gtk-demo: Fix iconscroll complex text
authorMatthias Clasen <mclasen@redhat.com>
Sat, 8 Aug 2020 18:38:18 +0000 (14:38 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 8 Aug 2020 18:38:18 +0000 (14:38 -0400)
We changed the way fontify works.
Adapt the iconscroll use.

demos/gtk-demo/iconscroll.c

index 09ed6c12587bfa1c00ee4bfa1bacdf56deded5d3..f7cdc13b6a31197aaf9df8040b16f73fda0f9c52 100644 (file)
@@ -75,7 +75,7 @@ populate_icons (void)
 static char *content;
 static gsize content_len;
 
-extern void fontify (GtkTextBuffer *buffer);
+extern void fontify (const char *format, GtkTextBuffer *buffer);
 
 static void
 populate_text (gboolean hilight)
@@ -95,7 +95,7 @@ populate_text (gboolean hilight)
   gtk_text_buffer_set_text (buffer, content, (int)content_len);
 
   if (hilight)
-    fontify (buffer);
+    fontify ("c", buffer);
 
   textview = gtk_text_view_new ();
   gtk_text_view_set_buffer (GTK_TEXT_VIEW (textview), buffer);